package cn.wolfcode.mapper;

import cn.wolfcode.domain.Choice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChoiceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Choice record);

    Choice selectByPrimaryKey(Long id);

    List<Choice> selectAll();

    int updateByPrimaryKey(Choice record);

    Choice check(@Param("eId") Long eId, @Param("typeId") Long typeId);

    int getCount(@Param("id1") Long id1, @Param("id2") Long id2);
}